package com.cly.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.cly.base.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;

/**
 * 题目选项表
 *
 * @author by 春风能解释
 * <p>
 * 2024-06-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Schema(name = "题目选项表")
@NoArgsConstructor
public class ProblemOption extends BaseEntity {

    /**
     * 序列化ID
     */
    @Serial
    private static final long serialVersionUID = 1796801366348309566L;
    /**
     * 题目ID
     */
    @Schema(description = "题目ID")
    private Long problemId;
    /**
     * 选项索引
     */
    @Schema(description = "选项索引")
    @TableField("`index`")
    private String index;
    /**
     * 选项内容
     */
    @Schema(description = "选项内容")
    private String content;
    /**
     * 是否为答案
     */
    @Schema(description = "是否为答案")
    private Boolean isAnswer;

}
